<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/pages/common/header.jsp"%>
</head>
<body>
	<div class="contentBody contentborder">
		<div class="tab-pane" id="tabPane">
			<div id="message"><%=message %></div>
			<div class="tab-page">
				 <h1 class="tab">服务器列表</h1>
 				 <div class="contentborder">
                	 <jdf:form bean="request" scope="request">
						<form action="<%=dynamicDomain%>/server/page" method="post">
							 <table class="inputTable">
			                 	<tr>
									<td nowrap class="label cancelBorderLeft">
										<label for="search_LIKES_name">服务名：</label>
									</td>
									<td class="content">
										<input type="text" name="search_EQS_name" />
									</td>
									<td nowrap class="label">
										<label for="search_LIKES_context">上下文：</label>
									</td>
									<td class="content">
										<input type="text" name="search_LIKES_context" />
									</td>
			                 	</tr>
			                 	<tr>
									<td nowrap class="label cancelBorderLeft">
										<label for="search_LIKES_domain">域名：</label>
									</td>
									<td class="content">
										<input type="text" name="search_LIKES_domain" />
									</td>
									<td nowrap class="label">
										<label for="search_LIKES_ip">IP：</label>
									</td>
									<td class="content">
										<input type="text" name="search_LIKES_ip" />
									</td>
			                 	</tr>
			                 	<tr>
                                	<td class="bottomLabel" nowrap colspan="4">
                                		<div class="right">
											<button type="reset">重置</button>
											<button type="submit">查询</button>
                                		</div>
									</td>
			                 </table>
			            </form>
			        </jdf:form>
				</div>
				<div class="contentborder listArea">
					<div class="toolBar">
		 				<button type="button" onclick="window.location.href='<%=dynamicDomain%>/server/create'">增加</button>
					</div>
					<div id="tableDiv">
						<jdf:table items="items" var="currentRowObject" retrieveRowsCallback="limit" filterRowsCallback="limit" sortRowsCallback="limit" action="page">
							<jdf:export view="csv" fileName="menu.csv" tooltip="导出CSV" imageName="csv" />
							<jdf:export view="xls" fileName="menu.xls" tooltip="导出EXCEL" imageName="xls" />
							<jdf:row>
								<jdf:column property="objectId" title="服务ID" style="width: 10%" />
								<jdf:column property="name" title="服务名" style="width:30%" />
								<jdf:column property="domain" title="域名" style="width:20%" />
								<jdf:column property="port" title="端口" style="width:10%" />
								<jdf:column property="context" title="上下文" style="width:10%" />
								<jdf:column alias="操作" sortable="false" viewsAllowed="html" style="width: 20%">
									<a href="<%=dynamicDomain%>/server/edit/${currentRowObject.id}" class="button">修改</a>
								</jdf:column>
							</jdf:row>
						</jdf:table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>